<?php
	// Interface function	
	function oh_module_path($tokens) {
		global $oh_object_path;
		if (count($tokens)>0) {
			if ($tokens[0] == "script") {
				return dirname($_SERVER['SCRIPT_FILENAME']);
			}
			if ($tokens[0]=='framework') {
				global $oh;
				if (count($tokens)>1) {
					$p = implode("/",array_slice($tokens,1));
					return $oh["path"]."/".$p;				
				} else {				
					return $oh["path"];				
				}				
			}
		}
		return $oh_object_path;	
	} 

	// Option file required
	// require_once(dirname(__FILE__)."/class.pauth.php");
	
	// Main class of module
	class oh_class_path {
		function oh_class_path() {
		}
	}
	
	// Main object of module
	global $oh_object_path;
	$oh_object_path = new oh_class_path();
?>
